<%@page import="java.util.List"%>
<%@page import="com.liferay.portal.service.UserLocalServiceUtil"%>
<%@page
	import="com.mto.quangcao.service.QuangCao_bannerLocalServiceUtil"%>
<%@page import="com.liferay.portal.kernel.dao.orm.QueryUtil"%>
<%@ page contentType="text/html; charset=UTF-8"%>
<%@ page pageEncoding="UTF-8"%>
<%@page import="com.liferay.portal.kernel.util.ListUtil"%>
<%@include file="/html/config/init.jsp"%>
<script src="http://code.jquery.com/jquery-1.9.1.js"></script>
<script src="http://code.jquery.com/ui/1.10.3/jquery-ui.js"></script>
<script
	src="//ajax.aspnetcdn.com/ajax/jquery.validate/1.9/jquery.validate.min.js"></script>
<!-- <script src="../docroot/js/jquery.bpopup.min.js" type="text/javascript"></script> -->

<%
	List<QuangCao_banner> bannerQuangcao = QuangCao_bannerLocalServiceUtil
			.getQuangCao_banners(QueryUtil.ALL_POS, QueryUtil.ALL_POS);
%>
<div>
	<form
		action="<liferay-portlet:actionURL portletConfiguration="true" />"
		method="post" name="<portlet:namespace />fm">

		<input name="<portlet:namespace /><%=Constants.CMD%>" type="hidden"
			value="<%=Constants.UPDATE%>" />

		<table class="lfr-table">
			<tr>
				<td>Chiều dài :</td>
				<td>
				<input
					style="width: 40px; height: 10px; text-align: center;" type="text"
					name="<portlet:namespace />width" value="<%=width%>" /></td>
				<td>X</td>
				<td><input
					style="width: 40px; height: 10px; text-align: center;" type="text"
					name="<portlet:namespace />heght" value="<%=heght%>" /></td>
				<td>Chiều rộng :</td>
			</tr>
			<tr>
				<td>
					<label>Chọn quảng cáo </label>
					 <select name="<portlet:namespace />quangCaoId">
							<%
								for (QuangCao_banner quangcao : bannerQuangcao) {
							%>
							<option value="<%=quangcao.getQuangCaoId()%>" ><%=quangcao.getTitle()%></option>
							<%
								}
							%>
					</select>
				</td>
				
				<td><%=quangCaoId%></td>
			</tr>
			<tr>
				<td colspan="2"><input type="button"
					value="<liferay-ui:message key="save" />"
					onClick="submitForm(document.<portlet:namespace />fm);" /></td>
			</tr>
		</table>
	</form>
</div>





